<?php
$cat = get_category_by_slug($slug);
?>
<div class="section-post section-post-<?php echo $slug; ?>">
	<header class="entry-header">
	</header><!-- .entry-header -->
	<?php if ( 'media' == $slug ) : ?>
	<img src="<?php echo get_template_directory_uri(); ?>/img/home/media_icon.png" />
	<?php elseif ( has_post_thumbnail() && ! post_password_required() && ! is_attachment() ) : ?>
	<div class="entry-thumbnail entry-thumbnail-<?php echo $slug; ?>">
		<?php if ( 'college' == $slug ) : ?>
		<a href="<?php the_permalink(); ?>">
		<?php endif; ?>
		<?php the_post_thumbnail(); ?>
		<?php if ( 'college' == $slug ) : ?>
		</a>
		<?php endif; ?>
	</div>
	<?php endif; ?>

	<div class="entry-title"><?php the_title(); ?></div>

	<div class="entry-summary">
		<?php if(is_category() || is_archive() || is_home() ) {
			the_excerpt();
		} else {
			the_content('Read the rest of this entry &raquo;');
		} ?>
	</div><!-- .entry-summary -->
	<footer class="entry-meta entry-meta-<?php echo $slug; ?>">
		<?php
		$template_file = locate_template('section-post-footer-' . $slug . '.php');
		if ($template_file != '') {
			include( $template_file );
		} else {
		?>
		<a class="entry-link entry-link-<?php echo $slug; ?>" href="<?php the_permalink(); ?>"></a>
		<?php
		}
		?>
	</footer><!-- .entry-meta -->
</div>
